import request from '@/utils/request'

// 查询出库信息列表
export function listBusOutStorage (query) {
  return request({
    url: '/storage/busOutStorage/list',
    method: 'get',
    params: query
  })
}

// 查询出库信息详细
export function getBusOutStorage (id) {
  return request({
    url: '/storage/busOutStorage/' + id,
    method: 'get'
  })
}

// 新增出库信息
export function addBusOutStorage (data) {
  return request({
    url: '/storage/busOutStorage',
    method: 'post',
    data: data
  })
}

// 修改出库信息
export function updateBusOutStorage (data) {
  return request({
    url: '/storage/busOutStorage',
    method: 'put',
    data: data
  })
}

// 删除出库信息
export function delBusOutStorage (id) {
  return request({
    url: '/storage/busOutStorage/' + id,
    method: 'delete'
  })
}

// 导出出库信息
export function exportBusOutStorage (query) {
  return request({
    url: '/storage/busOutStorage/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/storage/busOutStorage/getInitData/' + dictTypes,
    method: 'get'
  })
}
